home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / BitNOT.au3 < prev    next >
Text File  |  2007-09-08  |  207b  |  10 lines

  1.  
  2. $x = BitNot(5)
  3.  
  4. #cs Comments:
  5.     Result is -6 because for 32-bit numbers
  6.     5 == 00000000000000000000000000000101 binary
  7.     -6 == 11111111111111111111111111111010 binary
  8.     and the first bit is signed
  9. #ce
  10.